package com.xiaoyun.pojo;

import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Data
public class Orders {
    @Id
    private String id;

    /**
     * 订单号
     */
    @Column(name = "order_num")
    private String orderNum;

    /**
     * 订单状态
     * 10：待付款
     * 20：已付款
     */
    @Column(name = "order_status")
    private Integer orderStatus;

    /**
     * 订单金额
     */
    @Column(name = "order_amount")
    private Integer orderAmount;

    /**
     * 实际支付金额
     */
    @Column(name = "real_pay_amount")
    private Integer realPayAmount;

    /**
     * 产品表外键ID
     */
    @Column(name = "product_id")
    private String productId;

    /**
     * 产品购买的个数
     */
    @Column(name = "post_amount")
    private Integer postAmount;

    /**
     * 订单创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;
    /**
     * 支付时间
     */
    @Column(name = "paid_time")
    private Date paidTime;

    @Column(name = "pay_method")
    private Integer payMethod;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "is_delete")
    private Integer isDelete;

    @Column(name = "is_comment")
    private Integer isComment;

    @Column(name = "receive_name")
    private String receiveName;

    @Column(name = "receive_mobile")
    private String receiveMobile;

    @Column(name = "receive_address")
    private String receiveAddress;

    @Column(name = "Left_msg")
    private String LeftMsg;

    @Column(name = "total_amount")
    private Integer totalAmount;


}